package com.hf.action;

import java.io.IOException;
import java.util.*;

import javax.servlet.http.HttpSession;

import com.base.bean.*;
import com.base.dao.*;
import com.base.service.*;
import com.hf.bean.LinkBean;
import com.hf.listener.MySessionContext;

import net.sf.json.JSONObject;
import tool.*;

/**
 *  导航：
 * 
 *
 */
public class DaohangAction extends BaseAction{
	private List<LinkBean> links;

	
	// 测试
	public String execute(){
		this.tip=(this.tip==null?"":this.tip);
		this.info=this.openId+"--"+this.tip;
		this.links=SysArgsTool.getSysArgs().getLinks();
		if(links==null){
			this.tip="系统获取链接失败，请联系管理员";
			return ERROR;
		}
		
		
		this.openId=(this.openId==null?"":this.openId);
		if(this.openId.equals("")){
			this.tip="错误，请重新登录(openId is null)";
			return ERROR;
		}

		return SUCCESS;
	}


	public List<LinkBean> getLinks() {
		return links;
	}


	public void setLinks(List<LinkBean> links) {
		this.links = links;
	}


	
	




	
	
}
